﻿namespace HutongGames.PlayMakerEditor
{
    using System;
    using System.Collections.Generic;

    internal static class ArrayUtility
    {
        public static T[] Add<T>(T[] array, T item)
        {
            List<T> list2 = new List<T>(array);
            list2.Add(item);
            List<T> list = list2;
            return list.ToArray();
        }

        public static T[] Copy<T>(T[] array)
        {
            List<T> list = new List<T>(array);
            return list.ToArray();
        }

        public static T[] Remove<T>(T[] array, T item)
        {
            List<T> list = new List<T>(array);
            list.Remove(item);
            return list.ToArray();
        }
    }
}

